package com.sskj.lib.router.provider;

import android.content.Context;

import com.lzy.okgo.OkGo;
import com.sskj.common.base.HttpData;
import com.sskj.lib.BaseHttpConfig;
import com.sskj.lib.base.IPresenter;
import com.sskj.lib.bean.UploadBean;

import java.io.File;

public class UploadProviderImpl implements UploadProvider {
    @Override
    public void upload(IPresenter iPresenter, String filePath) {
        OkGo.<HttpData<UploadBean>>post(BaseHttpConfig.BASE_URL)
                .params("file", new File(filePath));
    }

    @Override
    public void init(Context context) {

    }
}
